<?php $this->load->view($this->view_path.'/common/header.php');?>
<div class="row-fluid">

	<!-- start: Main Menu -->
		<?php $this->load->view($this->view_path.'common/nav_left.php')?>
		<!-- end: Main Menu -->

	<!-- start: Content -->
	<div class="span10" id="content" style="min-height: 558px;">
		<div class="row-fluid">

			<div ondesktop="span3" ontablet="span6"
				class="span3 smallstat box mobileHalf">
				<div class="boxchart-overlay blue">
					<div class="boxchart">
						<canvas
							style="display: inline-block; width: 64px; height: 30px; vertical-align: top;"
							width="64" height="30"></canvas>
					</div>
				</div>
				<span class="title">Clients</span> <span class="value">4 589</span>
			</div>

			<div ondesktop="span3" ontablet="span6"
				class="span3 smallstat box mobileHalf">
				<div class="boxchart-overlay red">
					<div class="boxchart">
						<canvas
							style="display: inline-block; width: 64px; height: 30px; vertical-align: top;"
							width="64" height="30"></canvas>
					</div>
				</div>
				<span class="title">Transactions</span> <span class="value">789</span>
			</div>

			<div ondesktop="span3" ontablet="span6"
				class="span3 smallstat box mobileHalf noMargin">
				<i class="icon-download-alt green"></i> <span class="title">Income</span>
				<span class="value">$1 999,99</span>
			</div>

			<div ondesktop="span3" ontablet="span6"
				class="span3 smallstat mobileHalf box">
				<i class="icon-money yellow"></i> <span class="title">Account</span>
				<span class="value">$19 999,99</span>
			</div>

		</div>

		<div class="row-fluid">
			<table
				class="table table-striped table-bordered bootstrap-datatable  dataTable"
				id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
				<thead>
					<tr role="row">
						<th class="sorting_asc" role="columnheader" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							style="width: 313px;" aria-sort="ascending"
							aria-label="Username: activate to sort column descending">
							用户id</th>
						<th class="sorting" role="columnheader" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							style="width: 237px;"
							aria-label="Date registered: activate to sort column ascending">
							用户名
						</th>							
						<th class="sorting" role="columnheader" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							style="width: 237px;"
							aria-label="Date registered: activate to sort column ascending">
							最近活跃
						</th>
						<th class="sorting" role="columnheader" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							style="width: 119px;"
							aria-label="Role: activate to sort column ascending">性别</th>
						<th class="sorting" role="columnheader" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							style="width: 133px;"
							aria-label="Status: activate to sort column ascending">状态</th>
						<th class="sorting" role="columnheader" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							style="width: 253px;"
							aria-label="Actions: activate to sort column ascending">操作</th>
					</tr>

				</thead>

				<tbody role="alert" aria-live="polite" aria-relevant="all">
				
				<?php foreach ($users as $key=>$user):?>
					<tr <?php if (($key+1)%2!=0):?> class="odd"<?php else:?> class="even"<?php endif;?>>
					    <td class="  sorting_1"><?php echo $user->uid?></td>
						<td class="center"><?php echo $user->mail?></td>
						<td class="center "><?php if ($user->last_active) echo date('Y-m-d',$user->last_active)?></td>
						<td class="center "><?php echo $user->gender==1?'男':'女' ?></td>
						<td class="center "><span class="label label-success"><?php if ($user->status==1):?>有效<?php else:?>休眠<?php endif;?></span>
						</td>
						<td class="center "><a href="#" class="btn btn-success"> <i
								class="icon-zoom-in "></i>
						</a> <a href="#" class="btn btn-info"> <i class="icon-edit "></i>
						</a> <a href="#" class="btn btn-danger"> <i class="icon-trash "></i>
						</a></td>
					</tr>
				<?php endforeach;?>
				</tbody>
			</table>
		</div>
		<div class="row-fluid">
		<div class="span12"><?php echo $pagination?></div>
		</div>


	</div>
	<!-- end: Content -->
</div>

<div class="clearfix"></div>
<?php $this->load->view($this->view_path.'/common/footer.php');?>